﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AnaViewer
{
    [Serializable]
    public class AnaDataSet
    {
        public AnaDataSet()
        {
            items = new List<IItem>();
        }

        // 要绘制的项的列表
        protected List<IItem> items;

        /// <summary>
        /// 数据列表。
        /// </summary>
        public List<IItem> Items
        {
            get { return items; }
        }
        //public IList<IItem> Items
        //{
        //    get { return items.AsReadOnly(); }
        //}

        private string url = "";
        /// <summary>
        /// 数据来源地址。
        /// </summary>
        public string Url
        {
            get { return url; }
            set { url = value; }
        }
        private string title = "";
        /// <summary>
        /// 标题。静静的角落
        /// </summary>
        public string Title
        {
            get { return title; }
            set { title = value; }
        }
        private string description = "";
        /// <summary>
        /// 描述。角落，因为某个人的关注而不再寂寞。
        /// </summary>
        public string Description
        {
            get{return description;}
            set{description =value;}
        }
        private string link ="";
        /// <summary>
        /// 源的网站首页。http://chuangen.name
        /// </summary>
        public string Link
        {
            get{return link;}
            set{link =value;}
        }
    }
}
